package com.scy.java.loop;
//使用Dowhile循环计算10 的阶乘
public class DoWhileDemo {
    public static void main(String[] args) {
        int num = 1;
        int resule = 1 ;
        do {
//            计算阶乘
            resule *= num ;
            System.out.println(num+"的阶乘为："+resule);
            num++;
        }while (num <= 10);
    }
}
